package com.walleipt.demo.ioc.beanPostProcessor.simpleBeanPostProcessor;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;


public class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
	
		/**
		 * alt+shift+l 生成名称
		 * shift+enter 换行
		 * ctrl+t 查看接口的实现类
		 */
		AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext(AppConfig.class);
		
		for (String string : applicationContext.getBeanDefinitionNames()) {
			System.err.println(string+"|"+applicationContext.getBean(string).getClass());
		}
		
		MyIsBeaner bean = (MyIsBeaner)applicationContext.getBean("myIsBeaner");
		System.err.println(bean);

		
	}

}
